package com.li.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author li
 * @version 1.0
 * @ClassName DataSourceDruidConfig
 * @description: TODO
 * @date 2025年02月07日
 */
@Configuration
public class DataSourceDruidConfig {

    @Bean
    @ConfigurationProperties("spring.datasource")
    public DruidDataSource dataSource(){
        return new DruidDataSource();
    }
}
